package com.example.redismodule.bloom;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author：DijaH
 * @Date：2024/3/15 14:52
 * @Version：1.0.0
 * @Description：
 */
@RestController
@Api(tags = "google工具Guava处理布隆过滤器")
@Slf4j
public class GuavaBloomFilterController {

    @Resource
    private GuavaBloomFilterService guavaBloomFilterService;

    @ApiOperation("guava过滤器插入100w样本数据，并额外10w测试是否存在")
    @RequestMapping(value = "/guavaFilter",method = RequestMethod.GET)
    public void guavaBloomFilter(){
        guavaBloomFilterService.guavaBloomFilter();
    }
}
